package org.appchat.service;

import com.google.protobuf.Message;
import org.appchat.api.Listener;

import java.lang.reflect.ParameterizedType;

/**
 * Created by Ryan of app-chat.org
 * on: 7/12/12 at 11:35 PM
 */
public class ReflectionUtils {

    public static Class<?> getParameterizedTypeFromInterface(Listener listener) {
        return (Class<?>) ((ParameterizedType) listener.getClass().getGenericInterfaces()[0]).getActualTypeArguments()[0];
    }
    
//    public static String getFullNameFromListener(Listener listener){
//
//    }
}
